<?php

namespace App\Containers\AppSection\Qualification\Actions;

use App\Containers\AppSection\Qualification\Tasks\GetAllQualificationsTask;
use App\Ship\Parents\Actions\Action;
use App\Ship\Parents\Requests\Request;

class GetProfileQualificationsAction extends Action
{
    public function run($id, Request $request)
    {

        return app(GetAllQualificationsTask::class)
            ->addRequestCriteria()
            ->forProfile($id)
            ->run();
    }
}
